package com.ruoyi.playlist.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.playlist.mapper.PlaylistOwnersMapper;
import com.ruoyi.playlist.domain.PlaylistOwners;
import com.ruoyi.playlist.service.IPlaylistOwnersService;

/**
 * 歌单-用户Service业务层处理
 * 
 * @author lin
 * @date 2025-03-04
 */
@Service
public class PlaylistOwnersServiceImpl implements IPlaylistOwnersService 
{
    @Autowired
    private PlaylistOwnersMapper playlistOwnersMapper;

    /**
     * 查询歌单-用户
     * 
     * @param playlistId 歌单-用户主键
     * @return 歌单-用户
     */
    @Override
    public PlaylistOwners selectPlaylistOwnersByPlaylistId(Long playlistId)
    {
        return playlistOwnersMapper.selectPlaylistOwnersByPlaylistId(playlistId);
    }

    /**
     * 查询歌单-用户列表
     * 
     * @param playlistOwners 歌单-用户
     * @return 歌单-用户
     */
    @Override
    public List<PlaylistOwners> selectPlaylistOwnersList(PlaylistOwners playlistOwners)
    {
        return playlistOwnersMapper.selectPlaylistOwnersList(playlistOwners);
    }

    /**
     * 新增歌单-用户
     * 
     * @param playlistOwners 歌单-用户
     * @return 结果
     */
    @Override
    public int insertPlaylistOwners(PlaylistOwners playlistOwners)
    {
        return playlistOwnersMapper.insertPlaylistOwners(playlistOwners);
    }

    /**
     * 修改歌单-用户
     * 
     * @param playlistOwners 歌单-用户
     * @return 结果
     */
    @Override
    public int updatePlaylistOwners(PlaylistOwners playlistOwners)
    {
        return playlistOwnersMapper.updatePlaylistOwners(playlistOwners);
    }

    /**
     * 批量删除歌单-用户
     * 
     * @param playlistIds 需要删除的歌单-用户主键
     * @return 结果
     */
    @Override
    public int deletePlaylistOwnersByPlaylistIds(Long[] playlistIds)
    {
        return playlistOwnersMapper.deletePlaylistOwnersByPlaylistIds(playlistIds);
    }

    /**
     * 删除歌单-用户信息
     * 
     * @param playlistId 歌单-用户主键
     * @return 结果
     */
    @Override
    public int deletePlaylistOwnersByPlaylistId(Long playlistId)
    {
        return playlistOwnersMapper.deletePlaylistOwnersByPlaylistId(playlistId);
    }
}
